package com.acmen.easyapi.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 返回参数注解说明
 *
 * @Author acmen
 */
@Target({ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Param(label = "")
public @interface ResParam {
    public final String CLIENT_PC = "pc";
    public final String CLIENT_MOBILE = "mobile";
    @AliasFor(annotation = Param.class)
    String label();//参数名
    @AliasFor(annotation = Param.class)
    String example() default "";//样例
    @AliasFor(annotation = Param.class)
    String note() default "";//参数说明

    String client() default "";//接收终端
    @AliasFor(annotation = Param.class)
    Class enumClass()  default Object.class;//枚举类
    @AliasFor(annotation = Param.class)
    String dictType() default "";//字典类型
}
